import time

import allure

from utils.utils import *
import pytest
from selenium import webdriver

@pytest.fixture(scope='function',params=['Edge','Chrome'])
def wms_driver(request):
    driver=init_driver(request.param,headless=False)
    yield driver
    time.sleep(5)
    driver.quit()
    allure.attach.file(
        'WMS_.log',
        name='WMS_.log',
        attachment_type=allure.attachment_type.TEXT
    )